package com.asset.dispoal.business.appoint.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import tech.mhuang.pacebox.springboot.protocol.data.PageDTO;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class QueryWithdrawlPageRequest extends PageDTO {

    private String assetInstBatchId;

    @ApiModelProperty("状态,1退案池，2瑕疵池")
    private String state;

    @ApiModelProperty("批次名称")
    private String batchName;

    @ApiModelProperty("退案法院名称")
    private String courtName;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("退案人")
    private String userName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginWithdrawalTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endWithdrawalTime;

    @ApiModelProperty("标的金额开始")
    private BigDecimal beginLawsuitPrincipalAmount;
    @ApiModelProperty("标的金额结束")
    private BigDecimal endLawsuitPrincipalAmount;

    @ApiModelProperty("瑕疵原因")
    private String flawId;
    /**
     * 权限字符
     */
    private String permission;
}
